<!DOCTYPE html>
<html class="loading" lang="en" data-textdirection="">
<head>
    <script src="../js/jquery.min.js" type="text/javascript"></script>
<script src="../js/func.js?v=1.0" type="text/javascript"></script>
    <script src="../js/jquery-ui-1.10.4.min.js" type="text/javascript"></script>
    <script src="../js/jquery.serializejson.js" type="text/javascript"></script>
    <script src="https://cdn.jsdelivr.net/npm/js-cookie@2/src/js.cookie.min.js"></script>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0, minimal-ui">
    <meta name="description"
          content="Modern admin is super flexible, powerful, clean &amp; modern responsive bootstrap 4 admin template with unlimited possibilities with bitcoin dashboard.">
    <meta name="keywords"
          content="admin template, modern admin template, dashboard template, flat admin template, responsive admin template, web app, crypto dashboard, bitcoin dashboard">
    <meta name="author" content="PIXINVENT">
    <title>中国网络安全审查与认证区块链平台-证书数据上传</title>
    <link rel="apple-touch-icon" href="../images/ico/apple-icon-120.png">
    <link rel="shortcut icon" type="image/x-icon" href="../images/ico/favicon.ico">
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Quicksand:300,400,500,700"
          rel="stylesheet">
    <link href="https://maxcdn.icons8.com/fonts/line-awesome/1.1/css/line-awesome.min.css"
          rel="stylesheet">
    <!-- BEGIN VENDOR CSS-->
    <link rel="stylesheet" type="text/css" href="../css/vendors.css">
    <link rel="stylesheet" type="text/css" href="../vendors/css/tables/jsgrid/jsgrid-theme.min.css">
    <link rel="stylesheet" type="text/css" href="../vendors/css/tables/jsgrid/jsgrid.min.css">
    <!-- END VENDOR CSS-->
    <!-- BEGIN MODERN CSS-->
    <link rel="stylesheet" type="text/css" href="../css/app.css">
    <!-- END MODERN CSS-->
    <!-- BEGIN Page Level CSS-->
    <link rel="stylesheet" type="text/css" href="../css/core/menu/menu-types/vertical-menu.css">
    <link rel="stylesheet" type="text/css" href="../css/core/colors/palette-gradient.css">
    <!-- END Page Level CSS-->
    <!-- BEGIN Custom CSS-->
    <link rel="stylesheet" type="text/css" href="../css/style.css">
    <!-- END Custom CSS-->
    <link href="https://fonts.googleapis.com/css?family=Open+Sans:300,300i,400,400i,600,600i,700,700i|Quicksand:300,400,500,700"
          rel="stylesheet">
    <link href="https://maxcdn.icons8.com/fonts/line-awesome/1.1/css/line-awesome.min.css"
          rel="stylesheet">
    <!-- BEGIN VENDOR CSS-->
    <link rel="stylesheet" type="text/css" href="../css/vendors.css">
    <link rel="stylesheet" type="text/css" href="../vendors/css/ui/jquery-ui.min.css">
    <!-- END VENDOR CSS-->
    <!-- BEGIN MODERN CSS-->
    <link rel="stylesheet" type="text/css" href="../css/app.css">
    <!-- END MODERN CSS-->
    <!-- BEGIN Page Level CSS-->
    <link rel="stylesheet" type="text/css" href="../css/core/menu/menu-types/vertical-menu.css">
    <link rel="stylesheet" type="text/css" href="../css/core/colors/palette-gradient.css">
    <link rel="stylesheet" type="text/css" href="../css/plugins/ui/jqueryui.css">
    <!-- END Page Level CSS-->
    <!-- BEGIN Custom CSS-->
    <link rel="stylesheet" type="text/css" href="../css/style.css">
    <!-- END Custom CSS-->
    <style type="text/css">
        body {
            font-family: microsoft yahei !important;
        }

        @media (min-width: 768px)
            .col-md-3 {
                flex: 0 0 25%;
                max-width: 18%;
            }

            .col-md-3 {
                flex: 0 0 25%;
                max-width: 19%;
            }

            .label-control {
                line-height: 34px;
            }


    </style>
</head>
<body class="vertical-layout vertical-menu 2-columns   menu-expanded fixed-navbar"
      data-open="click" data-menu="vertical-menu" data-col="2-columns">
<!-- fixed-top-->
<nav class="header-navbar navbar-expand-md navbar navbar-with-menu navbar-without-dd-arrow fixed-top navbar-semi-light bg-info navbar-shadow">
    <div class="navbar-wrapper">
        <div class="navbar-header">
            <ul class="nav navbar-nav flex-row">
                <li class="nav-item mobile-menu d-md-none mr-auto"><a
                        class="nav-link nav-menu-main menu-toggle hidden-xs" href="#"><i
                        class="ft-menu font-large-1"></i></a></li>
                <li class="nav-item"><a class="navbar-brand" href="index.html"> <img class="brand-logo"
                                                                                     alt="modern admin logo"
                                                                                     src="../images/logo/logo.png">
                    <h3 class="brand-text" style="color:#fff!important;font-size:16px;">质量认证区块链平台</h3>
                </a></li>
                <li class="nav-item d-md-none"><a class="nav-link open-navbar-container" data-toggle="collapse"
                                                  data-target="#navbar-mobile"><i class="la la-ellipsis-v"></i></a></li>
            </ul>
        </div>
        <div class="navbar-container content">
            <div class="collapse navbar-collapse" id="navbar-mobile">
                <ul class="nav navbar-nav mr-auto float-left">
                    <li class="nav-item d-none d-md-block"><a class="nav-link nav-menu-main menu-toggle hidden-xs"
                                                              href="#"><i class="ft-menu"></i></a></li>
                    <li class="nav-item d-none d-md-block"><a class="nav-link nav-link-expand" href="#"><i
                            class="ficon ft-maximize"></i></a></li>

                    <li class="nav-item nav-search"><a class="nav-link nav-link-search" href="search-details.html"><i
                            class="ficon ft-search"></i></a>
                        <div class="search-input">
                            <input class="input" type="text" placeholder="Explore Modern...">
                        </div>
                    </li>
                </ul>
                <ul class="nav navbar-nav float-right">
                    <li class="dropdown dropdown-user nav-item"><a class="dropdown-toggle nav-link dropdown-user-link"
                                                                   href="#" data-toggle="dropdown"> <span class="mr-1">您好, <span
                            class="user-name text-bold-700" id="currentLogin">丁**</span> </span> <span
                            class="avatar avatar-online"> <img src="../images/portrait/small/me.png"
                                                               alt="avatar"><i></i></span> </a>
                        <div class="dropdown-menu dropdown-menu-right"><a class="dropdown-item" href="#"><i
                                class="ft-user"></i>个人信息</a> <a class="dropdown-item" href="#"><i class="ft-mail"></i>
                            个人信息</a> <a class="dropdown-item" href="#"><i class="ft-check-square"></i>个人信息</a> <a
                                class="dropdown-item" href="#"><i class="ft-message-square"></i> 个人信息</a>
                            <div class="dropdown-divider"></div>
                            <script>

                                var unitt=Cookies.get("unittype");
                                var usert=Cookies.get("usertype");

                                var out="";
                                if(unitt=="1"){
                                    out=out+"认证机构";
                                }
                                else if(unitt=="2"){
                                    out=out+"检测检验机构";
                                }
                                else if(unitt=="3"){
                                    out=out+"政府监管机构";
                                }
                                out=out+"的";
                                if(usert=="1"){
                                    out=out+"业务员";
                                }
                                else if(usert=="2"){
                                    out=out+"审核员";
                                }else if(usert=="3"){
                                    out=out+"管理员";
                                }
                                $("#currentLogin").text(out);


                            </script>
                            <a class="dropdown-item" href="#" onclick="logout()"><i class="ft-power"></i> 退 出</a></div>
                    </li>
                    <script>
                        var token = Cookies.get("token");

                        function logout() {
                            var data1 = JSON.stringify({
                                "peers": ["peer0.org1.example.com", "peer0.org2.example.com", "peer0.org3.example.com"],
                                "fcn": "userLogout",
                                "args": [""]
                            });
                            $.ajax({
                                dataType: "json",
                                type: "post",
                                contentType: 'application/json',
                                beforeSend: function (xhr) {
                                    xhr.setRequestHeader("Authorization", "Bearer " + token);
                                },
                                crossDomain: true,
                                url: "http://47.105.220.31:4000/channels/mychannel/chaincodes/mycc",
                                data: data1,
                                eache: false,
                                success: function (data) {
                                    console.log(data);
                                    if (data.success == true) {
                                        Cookies.set("token", "");
                                        window.location = "login-simple.html";
                                    }
                                },
                                error: function () {
                                    console.log(11);
                                    return;
                                }
                            });


                        }
                    </script>
                    <li class="dropdown dropdown-notification nav-item"><a class="nav-link nav-link-label" href="#"
                                                                           data-toggle="dropdown"><i
                            class="ficon ft-bell"></i> <span
                            class="badge badge-pill badge-default badge-danger badge-default badge-up badge-glow">5</span>
                    </a>
                        <ul class="dropdown-menu dropdown-menu-media dropdown-menu-right">
                            <li class="dropdown-menu-header">
                                <h6 class="dropdown-header m-0"><span class="grey darken-2">消息通知</span></h6>
                                <span class="notification-tag badge badge-default badge-danger float-right m-0">5</span>
                            </li>
                            <li class="scrollable-container media-list w-100"><a href="javascript:void(0)">
                                <div class="media">
                                    <div class="media-left align-self-center" style="padding-right:0.4rem;"><i
                                            class="ft-file icon-bg-circle bg-cyan"
                                            style="font-size:16px; padding:0.4rem;font-weight:normal;"></i></div>
                                    <div class="media-body">
                                        <h6 class="media-heading">目前待审核的信息有5条</h6>
                                    </div>
                                </div>
                            </a> <a href="javascript:void(0)">
                                <div class="media">
                                    <div class="media-left align-self-center" style="padding-right:0.4rem;"><i
                                            class="ft-file icon-bg-circle bg-cyan"
                                            style="font-size:16px; padding:0.4rem;font-weight:normal;"></i></div>
                                    <div class="media-body">
                                        <h6 class="media-heading red darken-1">姜**下载了一条证书</h6>
                                    </div>
                                </div>
                            </a> <a href="javascript:void(0)">
                                <div class="media">
                                    <div class="media-left align-self-center" style="padding-right:0.4rem;"><i
                                            class="ft-file icon-bg-circle bg-cyan"
                                            style="font-size:16px; padding:0.4rem;font-weight:normal;"></i></div>
                                    <div class="media-body">
                                        <p class="notification-text font-small-3 text-muted">谭*下载了一条证书</p>
                                        <small>
                                        </small>
                                    </div>
                                </div>
                            </a> <a href="javascript:void(0)">
                                <div class="media">
                                    <div class="media-left align-self-center" style="padding-right:0.4rem;"><i
                                            class="ft-file icon-bg-circle bg-cyan"
                                            style="font-size:16px; padding:0.4rem;font-weight:normal;"></i></div>
                                    <div class="media-body">
                                        <h6 class="media-heading">张*更新了个人信息资料</h6>
                                    </div>
                                </div>
                            </a> <a href="javascript:void(0)">
                                <div class="media">
                                    <div class="media-left align-self-center" style="padding-right:0.4rem;"><i
                                            class="ft-file icon-bg-circle bg-cyan"
                                            style="font-size:16px; padding:0.4rem;font-weight:normal;"></i></div>
                                    <div class="media-body">
                                        <h6 class="media-heading">高*新注册了个人资料</h6>
                                    </div>
                                </div>
                            </a></li>
                            <li class="dropdown-menu-footer" style="font-size:12px;"><a
                                    class="dropdown-item text-muted text-center" href="javascript:void(0)"
                                    style="padding-top:10px;">查看所有消息通知</a></li>
                        </ul>
                    </li>

                </ul>
            </div>
        </div>
    </div>
</nav>
 <!-- menu start -->
<div class="main-menu menu-fixed menu-dark menu-accordion    menu-shadow " id="menu" data-scroll-to-active="true">
    <div class="main-menu-content">
        <ul class="navigation navigation-main" id="main-menu-navigation" data-menu="menu-navigation" style="font-family:microsoft yahei;">
            <li class="nav-item open" id="userRev"><a href="toUserReview"><i class="la la-home"></i><span class="menu-title" data-i18n="nav.dash.main">用户审核</span></a></li>
            <!-- <li class=" nav-item"><a href="#"><i class="la la-television"></i><span class="menu-title" data-i18n="nav.templates.main">用户维护</span></a> -->
            <!-- <ul class="menu-content">          -->
            <!-- <li><a class="menu-item" href="revise-password.html" data-i18n="">密码修改</a> </li> -->
            <!-- <li><a class="menu-item" href="recover-password.html" data-i18n="">忘记密码</a> </li> -->
            <!-- </ul> -->
            <!-- </li> -->

            <li class="nav-item"><a href="#"><i class="la la-columns"></i><span class="menu-title" data-i18n="nav.page_layouts.main">证书查询</span></a>
                <ul class="menu-content">
                    <li><a class="menu-item" href="Certificate_download.html" data-i18n="">综合查询</a> </li>
                    <li><a class="menu-item" href="search-details.html" data-i18n="">条件查询</a> </li>
                </ul>
            </li>
            <li class=" nav-item jianguanjigou"><a href="#"><i class="la la-navicon"></i><span class="menu-title" data-i18n="nav.navbars.main">数据审核</span></a>
                <ul class="menu-content">
                    <li class="has-sub"><a class="menu-item renzhengAndshenheyuan" href="#" data-i18n="nav.navbars.nav_light">认证数据审核</a>
                        <ul class="menu-content">
                            <li><a class="menu-item" href="checkUploadApplyDataList.html" data-i18n=""> 证书申请资料审核</a> </li>
                            <li><a class="menu-item" href="checkUploadFileDataList.html" data-i18n="">文件审核资料审核</a> </li>
                            <li><a class="menu-item" href="checkUploadOnsiteDataList.html" data-i18n="">现场审核资料审核</a> </li>
                            <li><a class="menu-item" href="checkUploadCertificateDataList.html" data-i18n="">证书数据审核</a> </li>
                        </ul>
                    </li>

                    <li class="has-sub"><a class="menu-item jianceAndshenheyuan" href="" data-i18n="">检测检验数据审核</a>
                        <ul class="menu-content">
                            <li><a class="menu-item" href="checkDataList.html?type=5" data-i18n=""> 检测检验审核</a> </li>
                            <li><a class="menu-item" href="checkDataList.html?type=6" data-i18n="">试运行数据审核</a> </li>
                        </ul>
                    </li>
                </ul>
            </li>
            <li class=" nav-item jianguanjigou"><a href="#"><i class="la la-navicon"></i><span class="menu-title" data-i18n="nav.navbars.main">数据上传</span></a>
                <ul class="menu-content">
                    <li class="has-sub"><a class="menu-item renzhengAndyewuyuan" href="#" data-i18n="nav.navbars.nav_light">认证数据上传</a>
                        <ul class="menu-content">
                            <li><a class="menu-item" href="upload_Certificate_Application.html" data-i18n=""> 证书申请资料上传</a> </li>
                            <li><a class="menu-item" href="upload_Document_audit_Application.html" data-i18n="">文件审核资料上传</a> </li>
                            <li><a class="menu-item" href="upload_Site_audit.html" data-i18n="">现场审核资料上传</a> </li>
                            <li><a class="menu-item" href="upload_Certificate_data.html" data-i18n="">证书数据上传</a> </li>
                        </ul>
                    </li>

                    <li class="has-sub"><a class="menu-item jianceAndyewuyuan" href="" data-i18n="">检测检验数据上传</a>
                        <ul class="menu-content">
                            <li><a class="menu-item" href="upload_Detection.html" data-i18n=""> 检测检验上传</a> </li>
                            <li><a class="menu-item" href="upload_test_run.html" data-i18n="">试运行数据上传</a> </li>
                        </ul>
                    </li>
                </ul>
            </li>

            <li class="nav-item"><a href="#"><i class="la la-header"></i><span class="menu-title" data-i18n="nav.page_headers.main">平台监控</span></a>
                <ul class="menu-content">
                    <li><a class="menu-item" href="point_monitoring.html" data-i18n="">区块链状态监控</a> </li>
                    <li><a class="menu-item" href="block_monitoring.html" data-i18n="">区块信息监控</a> </li>
                    <li><a class="menu-item" href="toInformationStatic" data-i18n="">交易信息实时监控</a> </li>
                </ul>
            </li>

        </ul>
    </div>
</div>
<div class="app-content content">
    <div class="content-wrapper">
        <div class="content-header row">
            <div class="content-header-left col-md-6 col-12 mb-2">
                <div class="row breadcrumbs-top">
                    <div class="breadcrumb-wrapper col-12">
                        <ol class="breadcrumb" style="font-family:microsoft yahei;">
                            <li class="breadcrumb-item"><a href="/toindex">首页</a></li>
                            <li class="breadcrumb-item"><a href="">数据上传</a></li>
                            <li class="breadcrumb-item"><a href="upload_Certificate_data.html">证书数据上传</a></li>
                            <li class="breadcrumb-item">证书数据上传</li>


                        </ol>
                    </div>
                </div>
            </div>
        </div>
        <div class="content-body">

            <!-- 证书数据上传 start -->
            <section id="sorting-scenario">
                <div class="row">
                    <div class="col-md-12">
                        <div class="card">
                            <div class="card-header">
                                <h4 class="card-title" id="horz-layout-icons"
                                    style="margin:20px 0 0 20px; font-family:microsoft yahei;">证书数据上传</h4>
                                <a class="heading-elements-toggle"><i class="la la-ellipsis-v font-medium-3"></i></a>
                                <div class="heading-elements">
                                    <ul class="list-inline mb-0">
                                        <li><a data-action="collapse"><i class="ft-minus"></i></a></li>
                                        <li><a data-action="reload"><i class="ft-rotate-cw"></i></a></li>
                                        <li><a data-action="expand"><i class="ft-maximize"></i></a></li>
                                        <li><a data-action="close"><i class="ft-x"></i></a></li>
                                    </ul>
                                </div>
                            </div>
                            <div class="card-content collpase show" style="padding-bottom:4rem;">
                                <div class="card-body">
                                    <div class="card-text">
                                        <p></p>
                                    </div>

                                    <div class="form-body">
                                        <div class="form-group row">
                                            <label class="col-md-3 label-control" for="timesheetinput1">证书编号</label>
                                            <div class="col-md-9">
                                                <div class="position-relative has-icon-left">
                                                    <input type="text" id="certificateID" class="form-control"
                                                           placeholder="证书编号"
                                                           name="证书编号">
                                                    <div class="form-control-position">
                                                        <i class="ft-edit"></i>
                                                    </div>
                                                </div>
                                            </div>
                                            <font color="red" style="float:right;font-size:20px;">*</font>
                                        </div>
                                        <div class="form-group row">
                                            <label class="col-md-3 label-control" for="timesheetinput2">获证企业单位编号</label>
                                            <div class="col-md-9">
                                                <div class="position-relative has-icon-left">
                                                    <input type="text" id="unitID" class="form-control"
                                                           placeholder="营业执照编号" name="机构编号">
                                                    <div class="form-control-position">
                                                        <i class="la la-briefcase"></i>
                                                    </div>
                                                </div>
                                            </div>
                                            <font color="red" style="float:right;font-size:20px;">*</font>
                                        </div>


                                        <div class="form-group row">
                                            <label class="col-md-3 label-control">获证企业单位名称</label>
                                            <div class="col-md-9">
                                                <div class="position-relative has-icon-left">
                                                    <input type="text" id="unitName" class="form-control"
                                                           placeholder="获证企业单位名称"
                                                           name="机构名称">
                                                    <div class="form-control-position">
                                                        <i class="ft-user"></i>
                                                    </div>
                                                </div>
                                            </div>
                                            <font color="red" style="float:right;font-size:20px;">*</font>
                                        </div>
                                        <div class="form-group row">
                                            <label class="col-md-3 label-control">注册地址</label>
                                            <div class="col-md-9">
                                                <div class="position-relative has-icon-left">
                                                    <input type="text" id="registerAddr" class="form-control"
                                                           placeholder="注册地址"
                                                           name="注册地址">
                                                    <div class="form-control-position">
                                                        <i class="ft-map-pin"></i>
                                                    </div>
                                                </div>
                                            </div>
                                            <font color="red" style="float:right;font-size:20px;">*</font>
                                        </div>

                                        <div class="form-group row">
                                            <label class="col-md-3 label-control">交易平台名称</label>
                                            <div class="col-md-9">
                                                <div class="position-relative has-icon-left">
                                                    <input type="text" id="platformName" class="form-control"
                                                           placeholder="交易平台名称"
                                                           name="交易平台名称">
                                                    <div class="form-control-position">
                                                        <i class="ft-pie-chart"></i>
                                                    </div>
                                                </div>
                                            </div>
                                            <font color="red" style="float:right;font-size:20px;">*</font>
                                        </div>


                                        <div class="form-group row">
                                            <label class="col-md-3 label-control">交易平台版本</label>
                                            <div class="col-md-9">
                                                <div class="position-relative has-icon-left">
                                                    <input type="text" id="edition" class="form-control"
                                                           placeholder="交易平台版本"
                                                           name="交易平台版本">
                                                    <div class="form-control-position">
                                                        <i class="ft-minus-square"></i>
                                                    </div>
                                                </div>
                                            </div>
                                            <font color="red" style="float:right;font-size:20px;">*</font>
                                        </div>


                                        <div class="form-group row">
                                            <label class="col-md-3 label-control">网址</label>
                                            <div class="col-md-9">
                                                <div class="position-relative has-icon-left">
                                                    <input type="text" id="website" class="form-control"
                                                           placeholder="网址"
                                                           name="网址">
                                                    <div class="form-control-position">
                                                        <i class="ft-chrome"></i>
                                                    </div>
                                                </div>
                                            </div>
                                            <font color="red" style="float:right;font-size:20px;">*</font>
                                        </div>


                                        <div class="form-group row">
                                            <label class="col-md-3 label-control">受审核地址</label>
                                            <div class="col-md-9">
                                                <div class="position-relative has-icon-left">
                                                    <input type="text" id="auditAddr" class="form-control"
                                                           placeholder="受审核地址"
                                                           name="受审核地址">
                                                    <div class="form-control-position">
                                                        <i class="ft-map-pin"></i>
                                                    </div>
                                                </div>
                                            </div>
                                            <font color="red" style="float:right;font-size:20px;">*</font>
                                        </div>


                                        <div class="form-group row">
                                            <label class="col-md-3 label-control">标准和技术要求</label>
                                            <div class="col-md-9">
                                                <div class="position-relative has-icon-left">
                                                    <input type="text" id="authenticationStandard" class="form-control"
                                                           placeholder="标准和技术要求"
                                                           name="标准和技术要求">
                                                    <div class="form-control-position">
                                                        <i class="ft-edit-2"></i>
                                                    </div>
                                                </div>
                                            </div>
                                            <font color="red" style="float:right;font-size:20px;">*</font>
                                        </div>


                                        <div class="form-group row">
                                            <label class="col-md-3 label-control">认证模式</label>
                                            <div class="col-md-9">
                                                <div class="position-relative has-icon-left">
                                                    <input type="text" id="certificationMode" class="form-control"
                                                           placeholder="认证模式"
                                                           name="认证模式">
                                                    <div class="form-control-position">
                                                        <i class="ft-edit-2"></i>
                                                    </div>
                                                </div>
                                            </div>
                                            <font color="red" style="float:right;font-size:20px;">*</font>
                                        </div>

                                        <div class="form-group row">
                                            <label class="col-md-3 label-control">认证结论</label>
                                            <div class="col-md-9">
                                                <div class="position-relative has-icon-left">
                                                    <input type="text" id="certificationConclusion" class="form-control"
                                                           placeholder="认证结论"
                                                           name="认证结论">
                                                    <div class="form-control-position">
                                                        <i class="ft-edit-2"></i>
                                                    </div>
                                                </div>
                                            </div>
                                            <font color="red" style="float:right;font-size:20px;">*</font>
                                        </div>


                                        <div class="form-group row">
                                            <label class="col-md-3 label-control">认证级别</label>
                                            <div class="col-md-9">
                                                <div class="position-relative has-icon-left">
                                                    <input type="text" id="certificationClass" class="form-control"
                                                           placeholder="认证级别"
                                                           name="认证级别">
                                                    <div class="form-control-position">
                                                        <i class="ft-edit-2"></i>
                                                    </div>
                                                </div>
                                            </div>
                                            <font color="red" style="float:right;font-size:20px;">*</font>
                                        </div>


                                        <div class="form-group row">
                                            <label class="col-md-3 label-control">颁证日期</label>
                                            <div class="col-md-9">
                                                <div class="position-relative has-icon-left">
                                                    <input type="text" id="awardDate"
                                                           class="form-control dp-for-alternate" placeholder="颁证日期"
                                                           name="颁证日期"/>
                                                    <div class="form-control-position">
                                                        <i class="ft-clock"></i>
                                                    </div>
                                                </div>
                                            </div>
                                            <font color="red" style="float:right;font-size:20px;">*</font>
                                        </div>


                                        <div class="form-group row">
                                            <label class="col-md-3 label-control">换证日期</label>
                                            <div class="col-md-9">
                                                <div class="position-relative has-icon-left">
                                                    <input type="text" id="replaceDate"
                                                           class="form-control dp-for-alternate" placeholder="换证日期"
                                                           name="换证日期"/>
                                                    <div class="form-control-position">
                                                        <i class="ft-clock"></i>
                                                    </div>
                                                </div>
                                            </div>
                                            <font color="red" style="float:right;font-size:20px;">*</font>
                                        </div>


                                        <div class="form-group row">
                                            <label class="col-md-3 label-control">有效期至</label>
                                            <div class="col-md-9">
                                                <div class="position-relative has-icon-left">
                                                    <input type="text" id="validityTerm"
                                                           class="form-control dp-for-alternate" placeholder="有效期至"
                                                           name="有效期至"/>
                                                    <div class="form-control-position">
                                                        <i class="ft-clock"></i>
                                                    </div>
                                                </div>
                                            </div>
                                            <font color="red" style="float:right;font-size:20px;">*</font>
                                        </div>
                                    </div>

                                    <div class="form-group row">
                                        <label class="col-md-3 label-control" for="timesheetinput2">认证机构编号</label>
                                        <div class="col-md-9">
                                            <div class="position-relative has-icon-left">
                                                <input type="text" id="certificationID" class="form-control"
                                                       placeholder="营业执照编号" name="认证机构编号">
                                                <div class="form-control-position">
                                                    <i class="la la-briefcase"></i>
                                                </div>
                                            </div>
                                        </div>
                                        <font color="red" style="float:right;font-size:20px;">*</font>
                                    </div>


                                    <div class="form-group row">
                                        <label class="col-md-3 label-control">认证机构名称</label>
                                        <div class="col-md-9">
                                            <div class="position-relative has-icon-left">
                                                <input type="text" id="certificationName" class="form-control"
                                                       placeholder="认证机构名称"
                                                       name="认证机构名称">
                                                <div class="form-control-position">
                                                    <i class="ft-user"></i>
                                                </div>
                                            </div>
                                        </div>
                                        <font color="red" style="float:right;font-size:20px;">*</font>
                                    </div>


                                    <div class="form-group row">
                                        <label class="col-md-3 label-control">认证证书扫描件</label>
                                        <div class="col-md-9">
                                            <div class="position-relative has-icon-left">
                                                <input type="file" onchange="changeFile()" class="form-control"
                                                       placeholder="认证证书扫描件HASH值"
                                                       name="认证证书扫描件HASH值" id="filename">
                                                <div class="form-control-position">
                                                    <i class="ft-airplay"></i>
                                                </div>
                                            </div>
                                        </div>
                                        <font color="red" style="float:right;font-size:20px;">*</font>
                                    </div>


                                    <!-- <div class="form-group row"> -->
                                    <!-- <label class="col-md-3 label-control">私钥加密后的数据摘要</label> -->
                                    <!-- <div class="col-md-9"> -->
                                    <!-- <div class="position-relative has-icon-left"> -->
                                    <!-- <input type="text" id="encryptedSummary" class="form-control" placeholder="私钥加密后的数据摘要" -->
                                    <!-- name="私钥加密后的数据摘要"> -->
                                    <!-- <div class="form-control-position"> -->
                                    <!-- <i class="ft-layout"></i> -->
                                    <!-- </div> -->
                                    <!-- </div> -->
                                    <!-- </div> -->
                                    <!-- </div>   -->


                                    <div class="form-group row">
                                        <label class="col-md-3 label-control">数据上传人证件号码</label>
                                        <div class="col-md-9">
                                            <div class="position-relative has-icon-left">
                                                <input type="text" id="postPersonID" readonly="readonly" class="form-control"
                                                       placeholder="数据上传人证件号码"
                                                       name="数据上传人证件号码">
                                                <div class="form-control-position">
                                                    <i class="ft-credit-card"></i>
                                                </div>
                                            </div>
                                        </div>
                                        <font color="red" style="float:right;font-size:20px;">*</font>
                                    </div>
                                    <div class="form-group row">
                                        <label class="col-md-3 label-control">数据上传人证件姓名</label>
                                        <div class="col-md-9">
                                            <div class="position-relative has-icon-left">
                                                <input type="text" id="postPersonName" readonly="readonly" class="form-control"
                                                       placeholder="数据上传人证件姓名"
                                                       name="数据上传人证件姓名">
                                                <div class="form-control-position">
                                                    <i class="ft-user"></i>
                                                </div>
                                            </div>
                                        </div>
                                        <font color="red" style="float:right;font-size:20px;">*</font>
                                    </div>


                                </div>
                                <div class="form-actions right">
                                    <button onclick="upload_certificate_data()" class="btn btn-primary mr-1"
                                            style="margin:0 0 0 214px;padding-left:40px; padding-right:40px;">
                                        保 存
                                    </button>
                                    <button type="button" class="btn btn-warning"
                                            style="padding-left:40px; padding-right:40px;">
                                        取 消
                                    </button>
                                    <script>
                                        var img1 = "";

                                        var token = Cookies.get('token');
                                        var name=Cookies.get('username');
                                        var id=Cookies.get('userid');
                                        $('#postPersonName').val(id.split(";")[1]);
                                        $('#postPersonID').val(id.split(";")[0]);
                                        var applicationScan = "";

                                        function changeFile() {
                                            file = event.target.files[0];
                                            var reader = new FileReader();
                                            reader.readAsDataURL(file);
                                            reader.onload = function (e) {
                                                $('#img').attr('src', this.result);
                                                base64img = this.result;
                                                img1 = this.result;
                                                applicationScan = this.result.split("base64,")[1];

                                            }
                                        }

                                        function SHA256(s) {

                                            var chrsz = 8;
                                            var hexcase = 0;

                                            function safe_add(x, y) {
                                                var lsw = (x & 0xFFFF) + (y & 0xFFFF);
                                                var msw = (x >> 16) + (y >> 16) + (lsw >> 16);
                                                return (msw << 16) | (lsw & 0xFFFF);
                                            }

                                            function S(X, n) {
                                                return (X >>> n) | (X << (32 - n));
                                            }

                                            function R(X, n) {
                                                return (X >>> n);
                                            }

                                            function Ch(x, y, z) {
                                                return ((x & y) ^ ((~x) & z));
                                            }

                                            function Maj(x, y, z) {
                                                return ((x & y) ^ (x & z) ^ (y & z));
                                            }

                                            function Sigma0256(x) {
                                                return (S(x, 2) ^ S(x, 13) ^ S(x, 22));
                                            }

                                            function Sigma1256(x) {
                                                return (S(x, 6) ^ S(x, 11) ^ S(x, 25));
                                            }

                                            function Gamma0256(x) {
                                                return (S(x, 7) ^ S(x, 18) ^ R(x, 3));
                                            }

                                            function Gamma1256(x) {
                                                return (S(x, 17) ^ S(x, 19) ^ R(x, 10));
                                            }

                                            function core_sha256(m, l) {
                                                var K = new Array(0x428A2F98, 0x71374491, 0xB5C0FBCF, 0xE9B5DBA5, 0x3956C25B, 0x59F111F1, 0x923F82A4, 0xAB1C5ED5, 0xD807AA98, 0x12835B01, 0x243185BE, 0x550C7DC3, 0x72BE5D74, 0x80DEB1FE, 0x9BDC06A7, 0xC19BF174, 0xE49B69C1, 0xEFBE4786, 0xFC19DC6, 0x240CA1CC, 0x2DE92C6F, 0x4A7484AA, 0x5CB0A9DC, 0x76F988DA, 0x983E5152, 0xA831C66D, 0xB00327C8, 0xBF597FC7, 0xC6E00BF3, 0xD5A79147, 0x6CA6351, 0x14292967, 0x27B70A85, 0x2E1B2138, 0x4D2C6DFC, 0x53380D13, 0x650A7354, 0x766A0ABB, 0x81C2C92E, 0x92722C85, 0xA2BFE8A1, 0xA81A664B, 0xC24B8B70, 0xC76C51A3, 0xD192E819, 0xD6990624, 0xF40E3585, 0x106AA070, 0x19A4C116, 0x1E376C08, 0x2748774C, 0x34B0BCB5, 0x391C0CB3, 0x4ED8AA4A, 0x5B9CCA4F, 0x682E6FF3, 0x748F82EE, 0x78A5636F, 0x84C87814, 0x8CC70208, 0x90BEFFFA, 0xA4506CEB, 0xBEF9A3F7, 0xC67178F2);
                                                var HASH = new Array(0x6A09E667, 0xBB67AE85, 0x3C6EF372, 0xA54FF53A, 0x510E527F, 0x9B05688C, 0x1F83D9AB, 0x5BE0CD19);
                                                var W = new Array(64);
                                                var a, b, c, d, e, f, g, h, i, j;
                                                var T1, T2;

                                                m[l >> 5] |= 0x80 << (24 - l % 32);
                                                m[((l + 64 >> 9) << 4) + 15] = l;

                                                for (var i = 0; i < m.length; i += 16) {
                                                    a = HASH[0];
                                                    b = HASH[1];
                                                    c = HASH[2];
                                                    d = HASH[3];
                                                    e = HASH[4];
                                                    f = HASH[5];
                                                    g = HASH[6];
                                                    h = HASH[7];

                                                    for (var j = 0; j < 64; j++) {
                                                        if (j < 16) W[j] = m[j + i];
                                                        else W[j] = safe_add(safe_add(safe_add(Gamma1256(W[j - 2]), W[j - 7]), Gamma0256(W[j - 15])), W[j - 16]);

                                                        T1 = safe_add(safe_add(safe_add(safe_add(h, Sigma1256(e)), Ch(e, f, g)), K[j]), W[j]);
                                                        T2 = safe_add(Sigma0256(a), Maj(a, b, c));

                                                        h = g;
                                                        g = f;
                                                        f = e;
                                                        e = safe_add(d, T1);
                                                        d = c;
                                                        c = b;
                                                        b = a;
                                                        a = safe_add(T1, T2);
                                                    }

                                                    HASH[0] = safe_add(a, HASH[0]);
                                                    HASH[1] = safe_add(b, HASH[1]);
                                                    HASH[2] = safe_add(c, HASH[2]);
                                                    HASH[3] = safe_add(d, HASH[3]);
                                                    HASH[4] = safe_add(e, HASH[4]);
                                                    HASH[5] = safe_add(f, HASH[5]);
                                                    HASH[6] = safe_add(g, HASH[6]);
                                                    HASH[7] = safe_add(h, HASH[7]);
                                                }
                                                return HASH;
                                            }

                                            function str2binb(str) {
                                                var bin = Array();
                                                var mask = (1 << chrsz) - 1;
                                                for (var i = 0; i < str.length * chrsz; i += chrsz) {
                                                    bin[i >> 5] |= (str.charCodeAt(i / chrsz) & mask) << (24 - i % 32);
                                                }
                                                return bin;
                                            }

                                            function Utf8Encode(string) {
                                                string = string.replace(/\r\n/g, "\n");
                                                var utftext = "";

                                                for (var n = 0; n < string.length; n++) {

                                                    var c = string.charCodeAt(n);

                                                    if (c < 128) {
                                                        utftext += String.fromCharCode(c);
                                                    } else if ((c > 127) && (c < 2048)) {
                                                        utftext += String.fromCharCode((c >> 6) | 192);
                                                        utftext += String.fromCharCode((c & 63) | 128);
                                                    } else {
                                                        utftext += String.fromCharCode((c >> 12) | 224);
                                                        utftext += String.fromCharCode(((c >> 6) & 63) | 128);
                                                        utftext += String.fromCharCode((c & 63) | 128);
                                                    }

                                                }

                                                return utftext;
                                            }

                                            function binb2hex(binarray) {
                                                var hex_tab = hexcase ? "0123456789ABCDEF" : "0123456789abcdef";
                                                var str = "";
                                                for (var i = 0; i < binarray.length * 4; i++) {
                                                    str += hex_tab.charAt((binarray[i >> 2] >> ((3 - i % 4) * 8 + 4)) & 0xF) +
                                                        hex_tab.charAt((binarray[i >> 2] >> ((3 - i % 4) * 8)) & 0xF);
                                                }
                                                return str;
                                            }

                                            s = Utf8Encode(s);
                                            return binb2hex(core_sha256(str2binb(s), s.length * chrsz));

                                        }

                                        function upload_certificate_data() {
                                            //console.log(applicationScan);
                                            var file=document.getElementById("filename").value
                                            var certificateID = document.getElementById("certificateID").value;
                                            var unitId = document.getElementById("unitID").value;
                                            var unitName = document.getElementById("unitName").value;
                                            var registerAddr = document.getElementById("registerAddr").value;
                                            var platformName = document.getElementById("platformName").value;
                                            var edition = document.getElementById("edition").value;
                                            var website = document.getElementById("website").value;
                                            var auditAddr = document.getElementById("auditAddr").value;
                                            var authenticationStandard = document.getElementById("authenticationStandard").value;
                                            var certificationClass = document.getElementById("certificationClass").value;
                                            var certificationMode = document.getElementById("certificationMode").value;
                                            var certificationConclusion = document.getElementById("certificationConclusion").value;
                                            var awardDate = document.getElementById("awardDate").value;
                                            var replaceDate = document.getElementById("replaceDate").value;
                                            var validityTerm = document.getElementById("validityTerm").value;
                                            var certificationID = document.getElementById("certificationID").value;
                                            var certificationName = document.getElementById("certificationName").value;
                                            //var certificateScanHASH=document.getElementById("certificateScanHASH").value;
                                            //var encryptedSummary=document.getElementById("encryptedSummary").value;
                                            var postPersonID = document.getElementById("postPersonID").value;
                                            var postPersonName = document.getElementById("postPersonName").value;
                                            var e1=new Date(awardDate).getTime();
                                            var e2=new Date(replaceDate).getTime();
                                            var e3=new Date(validityTerm).getTime();

                                            var applicationHash = SHA256(applicationScan);
                                            if (file==""||certificateID == "" || unitId == "" || unitName == "" || registerAddr == "" || platformName == "" || edition == "" || website == "" || auditAddr == "" || authenticationStandard == "" || certificationClass == "" || certificationMode == "" || certificationConclusion == "" || awardDate == "" || replaceDate == "" || validityTerm == "" || certificationID == "" || certificationName == "" || postPersonID == "" || postPersonName == "") {
                                                alert("不能有数据为空");
                                                if(file==""){
                                                    document.getElementById("filename").style.border = '#FF0000 1px solid';
                                                }
                                                if (certificateID == "") {
                                                    document.getElementById('certificateID').style.border = '#FF0000 1px solid';
                                                }
                                                if (unitId == "") {
                                                    document.getElementById('unitID').style.border = '#FF0000 1px solid';
                                                }
                                                if (unitName == "") {
                                                    document.getElementById('unitName').style.border = '#FF0000 1px solid';
                                                }
                                                if (registerAddr == "") {
                                                    document.getElementById('registerAddr').style.border = '#FF0000 1px solid';
                                                }
                                                if (platformName == "") {
                                                    document.getElementById('platformName').style.border = '#FF0000 1px solid';
                                                }
                                                if (edition == "") {
                                                    document.getElementById('edition').style.border = '#FF0000 1px solid';
                                                }
                                                if (website == "") {
                                                    document.getElementById('website').style.border = '#FF0000 1px solid';
                                                }
                                                if (auditAddr == "") {
                                                    document.getElementById('auditAddr').style.border = '#FF0000 1px solid';
                                                }
                                                if (authenticationStandard == "") {
                                                    document.getElementById('authenticationStandard').style.border = '#FF0000 1px solid';
                                                }
                                                if (certificationClass == "") {
                                                    document.getElementById('certificationClass').style.border = '#FF0000 1px solid';
                                                }
                                                if (certificationMode == "") {
                                                    document.getElementById('certificationMode').style.border = '#FF0000 1px solid';
                                                }
                                                if (certificationConclusion == "") {
                                                    document.getElementById('certificationConclusion').style.border = '#FF0000 1px solid';
                                                }
                                                if (awardDate == "") {
                                                    document.getElementById('awardDate').style.border = '#FF0000 1px solid';
                                                }
                                                if (replaceDate == "") {
                                                    document.getElementById('replaceDate').style.border = '#FF0000 1px solid';
                                                }
                                                if (validityTerm == "") {
                                                    document.getElementById('validityTerm').style.border = '#FF0000 1px solid';
                                                }
                                                if (certificationID == "") {
                                                    document.getElementById('certificationID').style.border = '#FF0000 1px solid';
                                                }
                                                if (certificationID == "") {
                                                    document.getElementById('certificationID').style.border = '#FF0000 1px solid';
                                                }
                                                if (certificationName == "") {
                                                    document.getElementById('certificationName').style.border = '#FF0000 1px solid';
                                                }
                                                if (postPersonID == "") {
                                                    document.getElementById('postPersonID').style.border = '#FF0000 1px solid';
                                                }
                                                if (postPersonName == "") {
                                                    document.getElementById('postPersonName').style.border = '#FF0000 1px solid';
                                                }
                                                if (certificateID != "") {
                                                    document.getElementById('certificateID').style.border = '#BABFC7 1px solid';
                                                }
                                                if (unitId != "") {
                                                    document.getElementById('unitID').style.border = '#BABFC7 1px solid';
                                                }
                                                if (unitName != "") {
                                                    document.getElementById('unitName').style.border = '#BABFC7 1px solid';
                                                }
                                                if (registerAddr != "") {
                                                    document.getElementById('registerAddr').style.border = '#BABFC7 1px solid';
                                                }
                                                if (platformName != "") {
                                                    document.getElementById('platformName').style.border = '#BABFC7 1px solid';
                                                }
                                                if (edition != "") {
                                                    document.getElementById('edition').style.border = '#BABFC7 1px solid';
                                                }
                                                if (website != "") {
                                                    document.getElementById('website').style.border = '#BABFC7 1px solid';
                                                }
                                                if (auditAddr != "") {
                                                    document.getElementById('auditAddr').style.border = '#BABFC7 1px solid';
                                                }
                                                if (authenticationStandard != "") {
                                                    document.getElementById('authenticationStandard').style.border = '#BABFC7 1px solid';
                                                }
                                                if (certificationClass != "") {
                                                    document.getElementById('certificationClass').style.border = '#BABFC7 1px solid';
                                                }
                                                if (certificationMode != "") {
                                                    document.getElementById('certificationMode').style.border = '#BABFC7 1px solid';
                                                }
                                                if (certificationConclusion != "") {
                                                    document.getElementById('certificationConclusion').style.border = '#BABFC7 1px solid';
                                                }
                                                if (awardDate != "") {
                                                    document.getElementById('awardDate').style.border = '#BABFC7 1px solid';
                                                }
                                                if (replaceDate != "") {
                                                    document.getElementById('replaceDate').style.border = '#BABFC7 1px solid';
                                                }
                                                if (validityTerm != "") {
                                                    document.getElementById('validityTerm').style.border = '#BABFC7 1px solid';
                                                }
                                                if (certificationID != "") {
                                                    document.getElementById('certificationID').style.border = '#BABFC7 1px solid';
                                                }
                                                if (certificationID != "") {
                                                    document.getElementById('certificationID').style.border = '#BABFC7 1px solid';
                                                }
                                                if (certificationName != "") {
                                                    document.getElementById('certificationName').style.border = '#BABFC7 1px solid';
                                                }
                                                if (postPersonID != "") {
                                                    document.getElementById('postPersonID').style.border = '#BABFC7 1px solid';
                                                }
                                                if (postPersonName != "") {
                                                    document.getElementById('postPersonName').style.border = '#BABFC7 1px solid';
                                                }
                                                //window.location.href="upload_Certificate_data.html";
                                            }
                                            else if (postPersonID.length != 18) {
                                                alert("身份证号格式不正确");
                                                //window.location.href="upload_Certificate_data.html";
                                                document.getElementById('postPersonID').style.border = '#FF0000 1px solid';

                                            }
                                            else if(e2<e1){
                                                alert("换证日期不能早于颁证日期");
                                            }
                                            else if(e3<e1){
                                                alert("有效期不能早于颁证日期");
                                            }
                                            else {
                                                var basedata = JSON.stringify({
                                                    "certificateID": certificateID,
                                                    "unitName": unitName,
                                                    "registerAddr": registerAddr,
                                                    "platformName": platformName,
                                                    "edition": edition,
                                                    "website": website,
                                                    "auditAddr": auditAddr,
                                                    "authenticationStandard": authenticationStandard,
                                                    "certificationMode": certificationMode,
                                                    "certificationConclusion": certificationConclusion,
                                                    "certificationClass": certificationClass,
                                                    "awardDate": awardDate,
                                                    "replaceDate": replaceDate,
                                                    "validityTerm": validityTerm,
                                                    "certificationID": certificationID,
                                                    "certificationName": certificationName,
                                                    "certificateScanHASH": applicationHash,
                                                    "postPersonID": postPersonID,
                                                    "postPersonName": postPersonName
                                                });
                                                var data1 = JSON.stringify({
                                                    "peers": ["peer0.org1.example.com", "peer0.org2.example.com", "peer0.org3.example.com"],
                                                    "fcn": "certUpload",
                                                    "args": [certificateID, unitId, basedata, ""],
                                                    "image1": img1,
                                                    "certificateID": certificateID,
                                                    "unitID": unitId,
                                                    "postPersonName": postPersonName,
                                                    "postPersonID": postPersonID
                                                });
                                                $.ajax({
                                                    dataType: "json",
                                                    type: "post",
                                                    contentType: 'application/json',
                                                    url: "/certificateUpdate",
                                                    crossDomain: true,

                                                    beforeSend: function (xhr) {
                                                        xhr.setRequestHeader("Authorization", "Bearer " + token);
                                                    },
                                                    data: data1,
                                                    eache: false,
                                                    success: function (data) {
                                                        my_confirm("上传成功",function () {
                                                            window.location.href="/upload_Certificate_data.html";
                                                        })

                                                    },
                                                    error: function () {
                                                        return;
                                                    }
                                                });
                                                console.log(basedata);
                                                console.log(data1);
                                            }
                                        }
                                    </script>
                                </div>

                            </div>
                        </div>
                    </div>
                </div>
            </section>
        </div>

        <!-- 文件审核资料上传 end -->

    </div>
</div>
</div>
<!-- ////////////////////////////////////////////////////////////////////////////-->
<footer class="footer footer-static footer-light navbar-border navbar-shadow">
    <p class="clearfix blue-grey lighten-2 text-sm-center mb-0 px-2"> <span
            class="float-md-left d-block d-md-inline-block">Copyright &copy; 2019<a class="text-bold-800 grey darken-2"
                                                                                    href="index.html"
                                                                                    target="_blank">中科启信 </a>, All rights reserved. </span>
    </p>
</footer>
<!-- BEGIN VENDOR JS-->
<script src="../vendors/js/vendors.min.js" type="text/javascript"></script>
<!-- BEGIN VENDOR JS-->
<!-- BEGIN PAGE VENDOR JS-->

<!-- END PAGE VENDOR JS-->
<!-- BEGIN MODERN JS-->
<script src="../js/core/app-menu.js" type="text/javascript"></script>
<script src="../js/core/app.js" type="text/javascript"></script>
<script src="../js/scripts/customizer.js" type="text/javascript"></script>
<!-- END MODERN JS-->
<!-- BEGIN PAGE LEVEL JS-->
<script src="../js/scripts/tables/jsgrid/jsgrid.js" type="text/javascript"></script>
<!-- END PAGE LEVEL JS-->

<!-- BEGIN VENDOR JS-->
<!-- BEGIN VENDOR JS-->
<!-- BEGIN PAGE VENDOR JS-->
<script src="../js/core/libraries/jquery_ui/jquery-ui.min.js" type="text/javascript"></script>
<!-- END PAGE VENDOR JS-->

<!-- BEGIN PAGE LEVEL JS-->
<script src="../js/scripts/ui/jquery-ui/date-pickers.js" type="text/javascript"></script>
<!-- END PAGE LEVEL JS-->
<script src="../js/editHtml.js" type="text/javascript"></script>
</body>
</html>